<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.staticfile.org/angular.js/1.4.6/angular.min.js"></script>
    <script>
        //定义一个模块
        var app = angular.module('module',[]);
        //用模块创建一个controller
        app.controller('dome5controller',function ($scope) {
            $scope.list=[
                {"name":"张三","sex":20},
                {"name":"李四","sex":21}
            ];//定义数组
        })
    </script>
</head>
<body>
<h3>angularjs的循环输出对象</h3>
    <div ng-app="module" ng-controller="dome5controller">
        <div ng-repeat="i in list">
            我叫{{i.name}}今年{{i.sex}}
        </div>
    </div>
</body>
</html>